package com.jxd.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jxd.model.Employee;
import com.jxd.model.TicketInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TicketInfoMapper extends BaseMapper<TicketInfo> {
    IPage<TicketInfo> getAllTicketInfoList
            (IPage<TicketInfo> page, @Param("departurePoint") String departurePoint, @Param("arrivalLocation") String arrivalLocation, @Param("empno") int empno);

    IPage<TicketInfo> getAllTicketInfoList01
            (IPage<TicketInfo> page, @Param("empno") int empno);

    boolean updateTicketInfoByIds(@Param("ticketIds") int[] ticketIds, @Param("travelInfoId") int travelInfoId);

    TicketInfo getMaxIdTicketInfo(int id);

}
